<template>
  <div>
    <Count/>
    <br/>
    <love-talk/>
  </div>

<!--  <div class="app">-->
<!--    <h2 class="title">Vue 路由测试</h2>-->

<!--    &lt;!&ndash; 导航区 &ndash;&gt;-->
<!--    <div class="navigate">-->
<!--      <router-link to="/home" active-class="active">首页</router-link>-->
<!--      <router-link to="/news" active-class="active">新闻</router-link>-->
<!--      <router-link :to="{path: '/about'}" active-class="active">关于</router-link>-->
<!--    </div>-->

<!--    &lt;!&ndash; 展示区 &ndash;&gt;-->
<!--    <div class="main-content">-->
<!--      <router-view/>-->
<!--    </div>-->
<!--  </div>-->
<!--  <Props v-if="false" :personList="personList"/>-->
</template>

<script setup lang="ts">
import Props from "@/components/ts/Props.vue";
import {Persons} from "@/types";
import {reactive} from "vue";
// 引入路由视图组件
import {RouterView, RouterLink} from "vue-router";
import Count from "@/components/pinia/Count.vue";
import LoveTalk from "@/components/pinia/LoveTalk.vue";

let personList = reactive<Persons>([
  {id: '1', name: '张三', age: 18},
  {id: '2', name: '李四', age: 19},
  {id: '3', name: '王五', age: 20},
  {id: '4', name: '赵六', age: 21},
  {id: '5', name: '田七', age: 22},
]);
</script>

<style lang="scss" scoped>
/* App */
.title {
  text-align: center;
  word-spacing: 5px;
  margin: 30px 0;
  height: 70px;
  line-height: 70px;
  background-image: linear-gradient(45deg, gray, white);
  border-radius: 10px;
  box-shadow: 0 0 2px;
  font-size: 30px;
}

.navigate {
  display: flex;
  justify-content: space-around;
  margin: 0 100px;
}

.navigate a {
  display: block;
  text-align: center;
  width: 90px;
  height: 40px;
  line-height: 40px;
  border-radius: 10px;
  background-color: gray;
  text-decoration: none;
  color: white;
  font-size: 18px;
  letter-spacing: 5px;
}

.navigate a.active {
  background-color: #64967E;
  color: #ffc268;
  font-weight: 900;
  text-shadow: 0 0 1px black;
  font-family: 微软雅黑, serif;
}

.main-content {
  margin: 30px auto 0;
  border-radius: 10px;
  width: 90%;
  height: 400px;
  border: 1px solid;
}

.person {
  background-color: skyblue;
  box-shadow: 0 0 10px;
  border-radius: 10px;
  padding: 20px;

  button {
    margin: 0 5px;
  }

  li {
    font-size: 20px;
  }
}
</style>
